import 'package:enterprise_v6_app/app/core/core.dart';

/// 简单的通用TabBar
class CustomTabBarWidget extends StatelessWidget {
  const CustomTabBarWidget({required this.tabs, super.key});

  final List<Widget> tabs;

  @override
  Widget build(BuildContext context) {
    return Container(
        height: 54.w,
        decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.circular(8.r),
        ),
        child: TabBar(
          tabs: tabs,
          dividerColor: Colors.transparent,
          labelPadding: EdgeInsets.only(bottom: 20.w),
          labelStyle: TextStyle(
            fontSize: 16.sp,
            fontWeight: FontWeight.w500,
          ),
          unselectedLabelStyle: TextStyle(
            fontSize: 16.sp,
            fontWeight: FontWeight.w500,
          ),
          labelColor: Colors.black,
          unselectedLabelColor: const Color(0xffA0A7B5),
          indicatorPadding: EdgeInsets.only(top: 35.w, bottom: 10.w),
          indicator: const BoxDecoration(
            image: DecorationImage(
              image: AssetImage(
                AppImages.icon_app_work_plan,
              ),
            ),
          ),
        ));
  }
}
